package com.xiaolin.date;

import java.time.*;

/**
 * @ClassName TestWeek
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/9/27
 * @Version 1.0
 */
public class TestWeek {
    public static void main(String[] args) {
        //获取星期的枚举值
        DayOfWeek monday = DayOfWeek.MONDAY;
        //获取当前星期数
        DayOfWeek dayOfWeek = LocalDate.now().getDayOfWeek();
        System.out.println(dayOfWeek.getValue());
    }
}
